/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package util;

import java.util.Random;

/**
 *
 * @author phat10130059
 */
public class RandomNumber {

    public static String number() {
        String tmp = "";
        Random randNumGenerator = new Random();

        int[] x = new int[4];
        for (int i = 0; i < x.length; i++) {
            x[i] = (randNumGenerator.nextInt(100) + 1);
        }

        for (int i : x) {
            tmp = tmp + i;
        }
        return tmp;
    }
    
    public static String number10() {
        String tmp = "";
        Random randNumGenerator = new Random();

        int[] x = new int[10];
        for (int i = 0; i < x.length; i++) {
            x[i] = (randNumGenerator.nextInt(100) + 1);
        }

        for (int i : x) {
            tmp = tmp + i;
        }
        return tmp;
    }
}
